home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gigarom 1
/
Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso
/
FILES
/
HYP
/
H-I
/
HyperHackers.cpt
/
Hyper-Hackers Queue 1.0
/
card_35441.txt
< prev
next >
Wrap
Text File
|
1989-02-26
|
2KB
|
54 lines
-- card: 35441 from stack: in.0
-- bmap block id: 0
-- flags: 0000
-- background id: 3797
-- name:
-- part contents for background part 1
----- text -----
From: ns@CAT.CMU.EDU (Nicholas Spies)
Date: 9 Mar 88 20:09:42 GMT
I want to copy the contents in fields of one stack to an updated version
new stack. I used a script like the one here...
on copyStuff - executed from a button in the source stack
put the number of cards into numCards
repeat with i = 1 to numCards
go card i of stack "sourceStack"
put field "f1" into f1contents
- and so on
go stack "destination" - has one card to begin with, with fields, etc
if i > the number of cards then
doMenu "New Card"
end if
go card i
put f1contents into field "f1" - fields have same names
- and so on
end repeat
end copyStuff
There are almost 1100 cards in the source stack. Of course I tried it a few
times on about 20 cards to make sure things were working as expected, and
then let it go for about an hour to copy all field contents. I compacted the
destination stack only to find that only abour 5 card's worth of stuff had
been copied, even though all the cards were created in the destination
stack.
What gives? Did I unwittingly destroy all the imported information by
compacting the destination stack? Is there something that I have to do
to make sure the imported data sticks? Considering this didn't work, is there
a "right" way to do it?
-- part contents for background part 45
----- text -----
Copying contents of stacks